1 //! moment.js locale configuration
2 //! locale : Welsh [cy]
3 //! author : Robert Allen : https://github.com/robgallen
4 //! author : https://github.com/ryangreaves
6 ;(function (global
, factory
) {
7 typeof exports
=== 'object' && typeof module
!== 'undefined'
8 && typeof require
=== 'function' ? factory(require('../moment')) :
9 typeof define
=== 'function' && define
.amd
? define(['../moment'], factory
) :
10 factory(global
.moment
)
11 }(this, function (moment
) { 'use strict';
14 var cy
= moment
.defineLocale('cy', {
15 months
: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
16 monthsShort
: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
17 weekdays
: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
18 weekdaysShort
: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
19 weekdaysMin
: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
20 weekdaysParseExact
: true,
21 // time formats are the same as en-gb
27 LLL
: 'D MMMM YYYY HH:mm',
28 LLLL
: 'dddd, D MMMM YYYY HH:mm'
31 sameDay
: '[Heddiw am] LT',
32 nextDay
: '[Yfory am] LT',
33 nextWeek
: 'dddd [am] LT',
34 lastDay
: '[Ddoe am] LT',
35 lastWeek
: 'dddd [diwethaf am] LT',
41 s
: 'ychydig eiliadau',
53 ordinalParse
: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
54 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
55 ordinal: function (number
) {
59 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
60 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
63 if (b
=== 40 || b
=== 50 || b
=== 60 || b
=== 80 || b
=== 100) {
64 output
= 'fed'; // not 30ain, 70ain or 90ain
71 return number
+ output
;
74 dow
: 1, // Monday is the first day of the week.
75 doy
: 4 // The week that contains Jan 4th is the first week of the year.